from celery import shared_task
from djangocelerytest.celery import app

# 定义的定时任务函数
@shared_task
def auto_sc():
    print('sc test?')
    return 'halo'




@app.task
def add(x, y):
    print(x+y)
    return x + y